package com.ajview.common.core.constant;

/**
 * @author ZhangJunJie
 * @Date 2022-04-29
 * <p>
 * 概要：系统常量
 */
public class Constants {

    /**
     * Token令牌前缀，标记是我的合法token
     */
    public static final String TOKEN_PREFIX = "ajh_key";

    /**
     * Token key ，设置在token的UUID的key，最终返回给前台,后端需要此key从token中获取uuid的数据
     */
    public static final String TOKEN_USER_KEY_PREFIX = "token_key_web";

    /**
     * Token User Redis Key  存贮在redis中的key前缀为
     */
    public static final String TOKEN_USER_REDIS_KEY_PREFIX = "token_key_redis:";

    /**
     * SpringSecurity 默认的密码加密方式
     */
    public static final String ID_FOR_ENCODE = "bcrypt";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_code:";
    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";
    /**
     * GET、POST请求、
     */
    public static final String GET = "GET";
    public static final String POST = "POST";


    /**
     * 验证码模式
     * 计算
     */
    public static final String CAPTCHA_PRODUCER_MATH = "math";
    /**
     * 验证码模式
     * 字符
     */
    public static final String CAPTCHA_PRODUCER_CHAR = "char";

    /**
     * 登录返回参数 key
     */
    public static final String TOKEN = "token";

    /**
     * 后端国际化语言请求头
     */
    public static final String ACCEPT_LANGUAGE = "Accept-Language";


}
